package com.nuoniu.sibanyun.entity.dto;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nuoniu.sibanyun.entity.erp.ErpReportDesign;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @ClassName DynamicReportDto
 * @Description TODO
 * @Authpr baiqiang
 * @Date 2021/1/19 16:44
 **/
@Data
@ApiModel("单据报表查询DTO")
public class DynamicReportDto {

    @ApiModelProperty(value = "分页查询（必填：current、size必传）")
    private Page<HashMap<String,Object>> page = new Page();

    @ApiModelProperty(value = "动态报表设计")
    private List<ErpReportDesign> erpReportDesignList;

    @ApiModelProperty(value = "选填：排序字段")
    private String sortField;

    @ApiModelProperty(value = "选填：排序类型： ascend descend")
    private String sortOrder;

    @ApiModelProperty(value = "查询方式: 1:分页查询 2：合计  前端无需传递")
    private Integer searchType;

    @ApiModelProperty(value = "是否需要合计")
    private Boolean isSum = true;

    @ApiModelProperty(value = "指定的 业务类型 ")
    private String someBusinessType;

    @ApiModelProperty(value = "单据状态集合")
    private List<Integer> voucherStateList;

    @ApiModelProperty(value = "开始单据状态")
    private Integer startVoucherState ;

    @ApiModelProperty(value = "结束单据状态")
    private Integer endVoucherState ;

    @ApiModelProperty(value = "数据来源：单据唯一标识 ")
    private String dataSource;

    @ApiModelProperty(value = "导出：字段列表")
    private List<HashMap<String, String>> filedList;
}
